package cn.gzjp.modules.woms.entity;

import org.hibernate.validator.constraints.Length;

import cn.gzjp.common.persistence.DataEntity;
import cn.gzjp.common.utils.excel.annotation.ExcelField;

/**
 * 工单图片Entity
 * @author liyp
 * @version 2018-07-12
 */
public class EventPic extends DataEntity<EventPic> {
	
	private static final long serialVersionUID = 1L;
	private String eventId;		// 工单编号
	private String processId;		// 处理过程
	private String pic;		// 图片
	private String type;		// 图片类型
	
	public EventPic() {
		super();
	}

	public EventPic(String id){
		super(id);
	}

	@Length(min=0, max=32, message="工单编号长度必须介于 0 和 32 之间")
	@ExcelField(title="工单编号", align=2, sort=1)
	public String getEventId() {
		return eventId;
	}

	public void setEventId(String eventId) {
		this.eventId = eventId;
	}
	
	@Length(min=0, max=32, message="处理过程长度必须介于 0 和 32 之间")
	@ExcelField(title="处理过程", align=2, sort=2)
	public String getProcessId() {
		return processId;
	}

	public void setProcessId(String processId) {
		this.processId = processId;
	}
	
	@Length(min=0, max=256, message="图片长度必须介于 0 和 256 之间")
	@ExcelField(title="图片", align=2, sort=3)
	public String getPic() {
		return pic;
	}

	public void setPic(String pic) {
		this.pic = pic;
	}
	
	@Length(min=0, max=1, message="图片类型长度必须介于 0 和 1 之间")
	@ExcelField(title="图片类型", align=2, sort=4)
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
}